
from flask import current_app
from . import api
from ihome import  db,models

@api.route("/", methods=["GET", "POST"])
def index():

    # 测试日志
    current_app.logger.error("error msg")
    current_app.logger.warn("warn msg")
    current_app.logger.info("info msg")
    current_app.logger.debug("debug msg")
    return "index page"